package com.zhanglu.fun.services.website.security.response;

/**
 * @description
 * @Auther zhanglu
 * @Date 2017/9/21 下午2:58
 */
public enum MsgCode {
    TOKEN_TIME_OUT(101,"token超时,请重新登陆"),
    NO_ROLES(102,"用户没有此权限"),
    COOKIE_TIME_OUT(103,"cookie过期,请重新登陆"),
    SYSTEM_ERROR(104,"系统错误");

    private int code;
    private String message;

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    MsgCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
